<template>

<h2>注册</h2>

<table  class="table table-bordered">
        <tr>
                <th>姓名</th>
                <th><input type="text" v-model="aa.shop_Name"></th>

        </tr>


        <tr>
                <th>图片</th>
                <th><input type="text" v-model="aa.shop_Img"></th>

        </tr>

        <tr>
                <th></th>
                <th><button @click="AddShop" > 注册</button>
                
                
                </th>

        </tr>


</table>

</template>

<script setup lang="ts">





 import axios from 'axios';
import {ref} from 'vue';

 const aa=ref({

  "shop_Name": "string",
  "shop_Img": "string",



 })



const AddShop =()=>{


    axios.post('https://localhost:7260/api/User/AddShop',aa.value).then(res=>{

        if(res.data>0)
    {
        alert('添加成功')
    }
    else
    {
        alert('添加失败')
    }

    })

}



</script>